﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Edit.Master" Inherits="System.Web.Mvc.ViewPage<Langben.DAL.device>" %>

<%@ Import Namespace="Common" %>
<%@ Import Namespace="Models" %>
<asp:Content ID="Content4" ContentPlaceHolderID="CurentPlace" runat="server">
    修改 device
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <fieldset>
        <legend>
            <input class="a2 f2" type="submit" value="修改" />
            <input class="a2 f2" type="button" onclick="BackList('device')" value="返回列表" />
        </legend>
        <div class="bigdiv">
            <%: Html.HiddenFor(model => model.ID ) %>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.deviceName) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.deviceName) %>
                <%: Html.ValidationMessageFor(model => model.deviceName) %>
            </div>      
            <div class="editor-label">
                <a class="anUnderLine" onclick="showModalOnly('thirdProjectId','../../thirdProject');">
                    <%: Html.LabelFor(model => model.thirdProjectId) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkthirdProjectId">
                    <%  if(Model!=null)
                        {
                        if (null != Model.thirdProjectId)                      
                        {%>
                    <table id="<%: Model.thirdProjectId %>"
                        class="deleteStyle">
                        <tr>
                            <td>
                                <img alt="删除"  title="点击删除" onclick="deleteTable('<%: Model.thirdProjectId %>','thirdProjectId');" src="../../../Images/deleteimge.png" />
                            </td>
                            <td>
                                <%: Model.thirdProject.secondProjectId%>
                            </td>
                        </tr>
                    </table>
                    <%}}%>
                </div>
                <%: Html.HiddenFor(model => model.thirdProjectId)%>
            </div>      
            <div class="editor-label">
                <a class="anUnderLine" onclick="showModalOnly('buyPlanId','../../buyPlan');">
                    <%: Html.LabelFor(model => model.buyPlanId) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkbuyPlanId">
                    <%  if(Model!=null)
                        {
                        if (null != Model.buyPlanId)                      
                        {%>
                    <table id="<%: Model.buyPlanId %>"
                        class="deleteStyle">
                        <tr>
                            <td>
                                <img alt="删除"  title="点击删除" onclick="deleteTable('<%: Model.buyPlanId %>','buyPlanId');" src="../../../Images/deleteimge.png" />
                            </td>
                            <td>
                                <%: Model.buyPlan.planName%>
                            </td>
                        </tr>
                    </table>
                    <%}}%>
                </div>
                <%: Html.HiddenFor(model => model.buyPlanId)%>
            </div>      
            <div class="editor-label">
                <a class="anUnderLine" onclick="showModalOnly('packageId','../../devicePackage');">
                    <%: Html.LabelFor(model => model.packageId) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkpackageId">
                    <%  if(Model!=null)
                        {
                        if (null != Model.packageId)                      
                        {%>
                    <table id="<%: Model.packageId %>"
                        class="deleteStyle">
                        <tr>
                            <td>
                                <img alt="删除"  title="点击删除" onclick="deleteTable('<%: Model.packageId %>','packageId');" src="../../../Images/deleteimge.png" />
                            </td>
                            <td>
                                <%: Model.devicePackage.packageName%>
                            </td>
                        </tr>
                    </table>
                    <%}}%>
                </div>
                <%: Html.HiddenFor(model => model.packageId)%>
            </div>      
            <div class="editor-label">
                <a class="anUnderLine" onclick="showModalOnly('contractId','../../contract');">
                    <%: Html.LabelFor(model => model.contractId) %>
                </a>：
            </div>
            <div class="editor-field">
                <div id="checkcontractId">
                    <%  if(Model!=null)
                        {
                        if (null != Model.contractId)                      
                        {%>
                    <table id="<%: Model.contractId %>"
                        class="deleteStyle">
                        <tr>
                            <td>
                                <img alt="删除"  title="点击删除" onclick="deleteTable('<%: Model.contractId %>','contractId');" src="../../../Images/deleteimge.png" />
                            </td>
                            <td>
                                <%: Model.contract.zha_ID%>
                            </td>
                        </tr>
                    </table>
                    <%}}%>
                </div>
                <%: Html.HiddenFor(model => model.contractId)%>
            </div>        
            <div class="editor-label">
                <%: Html.LabelFor(model => model.chargeMan) %>：
            </div>
            <div class="editor-field">
                <%=Html.DropDownListFor(model => model.chargeMan,Models.SysFieldModels.GetSysField("device","chargeMan"),"请选择")%>  
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.specification) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.specification) %>
                <%: Html.ValidationMessageFor(model => model.specification) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.deviceType) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.deviceType) %>
                <%: Html.ValidationMessageFor(model => model.deviceType) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.devicePrice) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.devicePrice) %>
                <%: Html.ValidationMessageFor(model => model.devicePrice) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.deviceNum) %>：
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.deviceNum, new {  onkeyup = "isInt(this)", @class="text-box single-line" })%>
                <%: Html.ValidationMessageFor(model => model.deviceNum) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.deviceMoney) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.deviceMoney) %>
                <%: Html.ValidationMessageFor(model => model.deviceMoney) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.deviceCountry) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.deviceCountry) %>
                <%: Html.ValidationMessageFor(model => model.deviceCountry) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.deviceUsage) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.deviceUsage) %>
                <%: Html.ValidationMessageFor(model => model.deviceUsage) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.devicePlace) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.devicePlace) %>
                <%: Html.ValidationMessageFor(model => model.devicePlace) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.keeper) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.keeper) %>
                <%: Html.ValidationMessageFor(model => model.keeper) %>
            </div>        
            <div class="editor-label">
                <%: Html.LabelFor(model => model.isImport) %>：
            </div>
            <div class="editor-field">
             <%: Html.RadioButtonListFor(model => model.isImport,Models.SysFieldModels.GetSysField("device","isImport"),false) %>
            </div>
            <br style="clear: both;" />
            <div class="editor-label">
                <%: Html.LabelFor(model => model.importReason) %>：
            </div>
            <div class="textarea-box">
                <%: Html.TextAreaFor(model => model.importReason) %>
                <%: Html.ValidationMessageFor(model => model.importReason) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.deviceParameters) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.deviceParameters) %>
                <%: Html.ValidationMessageFor(model => model.deviceParameters) %>
            </div>        
            <div class="editor-label">
                <%: Html.LabelFor(model => model.kindName) %>：
            </div>
            <div class="editor-field">
                <%=Html.DropDownListFor(model => model.kindName,Models.SysFieldModels.GetSysField("device","kindName"),"请选择")%>  
            </div>        
            <div class="editor-label">
                <%: Html.LabelFor(model => model.deviceState) %>：
            </div>
            <div class="editor-field">
                <%=Html.DropDownListFor(model => model.deviceState,Models.SysFieldModels.GetSysField("device","deviceState"),"请选择")%>  
            </div>        
            <div class="editor-label">
                <%: Html.LabelFor(model => model.foreignState) %>：
            </div>
            <div class="editor-field">
             <%: Html.RadioButtonListFor(model => model.foreignState,Models.SysFieldModels.GetSysField("device","foreignState"),false) %>
            </div>        
            <div class="editor-label">
                <%: Html.LabelFor(model => model.buyState) %>：
            </div>
            <div class="editor-field">
             <%: Html.RadioButtonListFor(model => model.buyState,Models.SysFieldModels.GetSysField("device","buyState"),false) %>
            </div>
            <br style="clear: both;" />
            <div class="editor-label">
                <%: Html.LabelFor(model => model.supplyNotice) %>：
            </div>
            <div class="textarea-box">
                <%: Html.TextAreaFor(model => model.supplyNotice) %>
                <%: Html.ValidationMessageFor(model => model.supplyNotice) %>
            </div>
            <br style="clear: both;" />
            <div class="editor-label">
                <%: Html.LabelFor(model => model.attachedFile) %>：
            </div>
            <div class="textarea-box">
                <%: Html.TextAreaFor(model => model.attachedFile) %>
                <%: Html.ValidationMessageFor(model => model.attachedFile) %>
            </div>
            <br style="clear: both;" />
            <div class="editor-label">
                <%: Html.LabelFor(model => model.checkReport) %>：
            </div>
            <div class="textarea-box">
                <%: Html.TextAreaFor(model => model.checkReport) %>
                <%: Html.ValidationMessageFor(model => model.checkReport) %>
            </div><%: Html.HiddenFor(model => model.CreateTime ) %><%: Html.HiddenFor(model => model.CreatePerson ) %>
            <br style="clear: both;" />
            <div class="editor-label">
                <%: Html.LabelFor(model => model.remark) %>：
            </div>
            <div class="textarea-box">
                <%: Html.TextAreaFor(model => model.remark) %>
                <%: Html.ValidationMessageFor(model => model.remark) %>
            </div>
        </div>
    </fieldset>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    
    <script type="text/javascript">

        $(function () {
            

        });
              

    </script>
</asp:Content>

